#include <stdio.h>
#include <stdlib.h>

void test_exit( void )
{
    printf( "text_exit running\n" );
    exit(111);
}

int test_return( void )
{
    printf( "test_retrun running\n" );
    return 222;
}

int main(int argc, char const *argv[])
{
    printf( "main running\n" );
    
    test_return();

    test_exit();

    printf( "main end\n" );

    return 0;
}

/*
    return 和 exit 的区别
    命令 echo $?
*/